package com.xcm.util;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class FileUtilsTest {
	public static void main(String[] args) {
		try {
			long start = System.currentTimeMillis();
			File file = new File("E:\\xcm_document\\DSP-JSON文件\\上刊表新格式json_2018-05-12_310100_1526524663906.json");
			String s = FileUtils.readFileToString(file, "UTF-8");
			com.xcm.util.FileUtils.readFile("E:\\xcm_document\\DSP-JSON文件\\上刊表新格式json_2018-05-12_310100_1526524663906.json");
			long end = System.currentTimeMillis();
			System.out.println(end - start);
			System.out.println(s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
